Skip to content

Update code style formatting configuration (clang-format)#1677

Draft
Simran-B wants to merge 2 commits intomasterfrom
clang-format
Draft

Update code style formatting configuration (clang-format)#1677
Simran-B wants to merge 2 commits intomasterfrom
clang-format

Conversation

@Simran-B
Copy link
Collaborator

Based on Google style as of clang-format v10.0.1

ColumnLimit raised from 80 to 100 (unclear where 120 came from)

CMake integration inspired by https://arcanis.me/en/2015/10/17/cppcheck-and-clang-format#clang-cmake

Formatting the code with cmake --build . --target format appears to affect all files. It looks like the current code style is different from Google's in various smaller aspects.

Simran-B added 2 commits July 19, 2021 11:56
clang-format --style=Google --dump-config > .clang-format

Adjusted ColumnLimit to 100
Usage: cmake --build . --target format
@Simran-B Simran-B added the Governance Administrative subject about Olive as a project label Jul 19, 2021
@Simran-B Simran-B self-assigned this Jul 19, 2021
@ThomasWilshaw
Copy link
Collaborator

Olive is about to undergo some largish code refactoring and I wanted to check on the status of old PRs before we do that. Do you plan to update/continue with the PR? Thanks

@Simran-B
Copy link
Collaborator Author

Still relevant and the refactoring doesn't have much of an impact on this work, except that the style should be enforced in all repos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Governance Administrative subject about Olive as a project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants